﻿using System;
using System.Web.UI;

namespace PropertyExpression.TypedDataBinding.Web
{
    public interface IGroupBinder<TData>
    {
        void Add<TControl>(TControl control, IControlBinder<TControl> controlBinder) where TControl : Control;
        TData Data { get; }
        Control ParentControl { set; }
        
        void FromModel();
        void ToModel();

        Func<TData> DataFunc { get; set; }
    }
}
